import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/teacher',
      name: 'teacher',
      component: () => import('../views/Teacher.vue'),
    },
    {
      path: '/echart1',
      name: 'echart1',
      component: () => import('../views/ciyun1.vue'),
    },
    {
      path: '/echart2',
      name: 'echart2',
      component: () => import('../views/ciyun2.vue'),
    },
    {
      path: '/echart3',
      name: 'echart3',
      component: () => import('../views/ciyun3.vue'),
    },
    {
      path: '/echart4',
      name: 'echart4',
      component: () => import('../views/ciyun4.vue'),
    },
    {
      path: '/commentCount',
      name: 'commentCount',
      component: () => import('../views/commentcount.vue'),
    },
    {
      path: '/relationship',
      name: 'Relationship',
      component: () => import('../views/ratingRelationship.vue'),
    },
     {
      path: '/zft',
      name: 'zft',
      component: () => import('../views/zft.vue'),
    },
      {
      path: '/zd1',
      name: 'zd1',
      component: () => import('../views/zd1.vue'),
    },
    {
      path: '/commentTop20',
      name: 'commentTop20',
      component: () => import('../views/commentTop20.vue'),
    },
    {
      path: '/ratingTop20',
      name: 'ratingTop20',
      component: () => import('../views/ratingTop20.vue'),
    },
    {
      path: '/zd2',
      name: 'zd2',
      component: () => import('../views/zd2.vue'),
    },
    {
      path: '/zd3',
      name: 'zd3',
      component: () => import('../views/zd3.vue'),
    },
    {
      path: '/zd4',
      name: 'zd4',
      component: () => import('../views/zd4.vue'),
    },
  ],
})

export default router
